﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;
using y.WcfFirst.Host.Services;
namespace y.WcfFirst.Host
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "y.WcfFirst.Host";
            ServiceHost host = new ServiceHost(typeof(HelloService));
            host.Opened += delegate
            {
                Console.WriteLine("HttpEnabled =true");
                Console.WriteLine("\"HelloService\" is Running......\r\nPress any key to exit");
            };
            host.Open();
            Console.ReadLine();
        }
    }
}
